<!-- begin sidebar -->
<div id="sidebar">
	<ul id="sb1">
    <?php if((function_exists('is_front_page') && is_front_page()) && is_home())/*others */: ?>
	
		
	<li id='ggad1'>
	<script type="text/javascript"><!--
	google_ad_client = "pub-7920726685064722";
	/* walleve首页右侧栏 */
	google_ad_slot = "2588034707";
	google_ad_width = 180;
	google_ad_height = 150;
	//-->
	</script>
	<script type="text/javascript"
	src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
	</script>
	</li>
	
	<?php
	/*
	<li id='wallevextend'>
		<embed src="http://www.walleve.com/blog/img/time.swf?area=中国春节&amp;endTime=2010-02-14-0-0-0" width='180' height="100" type="application/x-shockwave-flash" wmode="transparent"></embed>
	</li>
	*/
	?>
	<?php else: ?>
    <li>
        <h2>订阅</h2>
			<!-- AddThis Button BEGIN -->
			<div class="addthis_toolbox addthis_default_style">
			<a class="addthis_button_twitter"></a>
			<a class="addthis_button_facebook"></a>
			<a class="addthis_button_douban"></a>
			<a class="addthis_button_googlereader"></a>
			<a class="addthis_button_qzone"></a>
			<a class="addthis_button_digg"></a>
			<a class="addthis_button_blogger"></a>
			<a class="addthis_button_delicious"></a>
			<a class="addthis_button_compact"></a>
			</div>
			<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
			<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=uulele"></script>
			<!-- AddThis Button END -->
	</li>
	<?php endif; ?>
    <li>
	<a href="http://www.ubuntu.com" title="get your own ubuntu"><img src="<?php bloginfo('template_directory'); ?>/img/ubuntuos.png" alt="选择ubuntu系统"></a>
	</li>
    
	<?php walleve_sidbar_searchfrom(); ?>
	<li>
    <h2>嘀咕</h2>
    <div id="wudiShow">digu~ing</div>
    <script src="http://www.digushow.com/js/digushow.js" type="text/javascript"></script><script type="text/javascript">wudiShow.setUrl("http://www.digu.com/");wudiShow.setSiteName("嘀咕");</script><script src="http://www.digushow.com/api/wudishow.jsp?callback=callback&amp;username=walleve&amp;count=1&amp;isBack=false" type="text/javascript"></script>
    </li>
	
	
	<?php wp_list_categories('sort_column=name&show_count=&title_li=<h2>Category</h2>'); ?>
			
	<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar 2') ) : else : ?>
	<?php endif; ?>
	<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar 1') ) : else : ?>
	<?php endif; ?>
	</ul>
	<ul id="sb2">
	
		<?php if((function_exists('is_front_page') && is_front_page()) && is_home())/*others */: ?>
		<li id="tagcloud"><h2>Tags</h2>
			<?php wp_tag_cloud('smallest=8&largest=16&unit=px&number=20'); ?>
		</li>
		<?php
		/***
		 * 注意修改错误的代码
		<li id="randomlinks" style="display:none;">
			<h2>友情链接</h2>
			<ul>
			<?php // wp_list_bookmarks('orderby=rand&categorize=0&limit=10&title_li=');>
			</ul>
		</li>
		*/
		?>
		<li><h2>Meta</h2>
			<ul>
			<?php wp_register(); ?>
			<li><?php wp_loginout(); ?></li>
			<?php wp_meta(); ?>
			<li id="eblhost">
				<a href="http://www.eblhost.cn/?u=50" title="EBL主机">推荐EBL主机</a>
			</li>
			</ul>
		</li>
		<?php else: ?>
		<li id="ggad2">
		<script type="text/javascript"><!--
		google_ad_client = "pub-7920726685064722";
		/* walleve内页右侧栏 */
		google_ad_slot = "4214866060";
		google_ad_width = 180;
		google_ad_height = 150;
		//-->
		</script>
		<script type="text/javascript"
		src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
		</script>
		</li>
		<?php endif; ?>
	</ul>

</div>
<!-- end sidebar -->
